<template>
    <div>
        <NavHeader></NavHeader>
        <div class="cd_box">
            <div class="cd_left">
                <el-button class="back" @click="back()">返回空间</el-button>
                <p class="n_name">资料列表</p>
                <ul>
                  <li class="n_card"><i class="el-icon-s-unfold icon"></i>第一章</li>
                 </ul>
                 
            </div>
            <div class="cd_right_box">
                <h1 class="cd_v_name">{{ v_name }}</h1>
                <div class="box11">
                    <video src='../assets/video/demo.mp4' controls width="auto" height="auto"></video>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import NavHeader from '../components/NavHeader.vue'
export default {
    name:'coursed',
    data(){
        return{
            v_name:'java'
        }
    },
    components:{
        NavHeader,
    },
    methods:{
        back(){
        this.$router.go(-1)
      }
    }
}
</script>

<style lang="scss">
    .cd_box{
        width: 100%;
        .cd_left{
         width: 20%;
         height: 100%;
         background-color: #ffffff;
         overflow: hidden;
         position: fixed;
         padding-top: 44px;
         left: 0;
         top: 0px;
         box-shadow: 2px 0 10px 0 rgb(237 238 240 / 50%);
         z-index: 2;
         overflow-y: scroll;
         .back{
           margin-top: 10px;
         }
         .n_name{
           width: 100%;
           height: auto;
           font-size: 18px;
           margin-top: 20%;
           margin-bottom: 30px;
           padding-bottom: 20px;
           border-bottom: 1px solid #ccc;
           text-align: center;
         }
         .n_card{
           width: 100%;
           height: 60px;
           line-height: 54px;
           font-size:16px;
           padding-left:47px;
           cursor: pointer;    
           .icon{
             margin-right: 5px;
           }
         }
         .n_card:hover{
           color: #3B90FF;
           background-color: #F0F6FF;
         }
         .n_card:focus{
           color: #3B90FF;
           background-color: #F0F6FF;
         }
        }
        .cd_right_box{
            width: 80%;
            height: 100%;
            padding-top: 44px;
            margin-left: 20%;
            position: relative;
            .cd_v_name{
               position: absolute;
               top:80px;
               left:75px;
            }
            .box11{
                margin-top: 100px;
                margin-left: 20%;
            }
        }   
    }   
</style>